.org 0xE2568 ; Highlight - Indirect Combat

Unit_Highlight_Indirect_Combat:

	PUSH 	{LR}
	SUB 	SP, SP, 4
	LDRB 	R1, [R0, 1]
	ANDS 	R1, R1, 8
	ADDNE 	SP, SP, 4
	MOVNE 	R0, 0
	POPNE 	{LR}	
	BXNE 	LR
	LDRB 	R0, [R0, 0]
	BL 		Check_Unit_Type_Custom + OL_7_Offset

	CMP 	R0, Unit_Indirect_Combat		; Is unit an Indirect Combat?
	MOVEQ 	R0, #1							; If yes, highlight unit
	MOVNE 	R0, #0							; If no, don't highlight unit
	
	ADD 	SP, SP, 4
	POP 	{LR}

	BX 		LR

